const { ipcMain } = require('electron')
const fontList = require('font-list')


ipcMain.on('get-font', (event, arg) => {
  fontList.getFonts().then(fonts => {
    event.sender.send('get-font', fonts)
  }).catch(err => {
    console.log(err)
  })
})
